setting the object reference variable